﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="tablecloth/tablecloth.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="tablecloth/tablecloth.js"></script>
<meta http-equiv="content-type" content="text/html; utf-8">
</head>
<body>

<?php

include ("inc/joomlaInt.php");
include("inc/inc_configuration.php");

if ($jUser==0)
{
	echo "Bitte zuerst einloggen!";
}
else
{
	$csQ = "SELECT c.Id, t.name, t.rating, c.joinDate, c.lastMatchDate, t.id AS tId  
			FROM $tbl_combinations c, $tbl_teams t 
			WHERE c.active=1 AND c.userId=$jUser AND c.teamId=t.id";
			
	$csQe = mysql_query($csQ);

	$_GET["reasonId"]=1;

	echo "Bei welchem Team wollen Sie sich wirklich selbst entlassen?<br>";

	echo '<form action="rauswerfen.php" method="post"><table><tr><th></th></tr>';

	while ($row = mysql_fetch_object($csQe))
	{
		echo '	<tr>
					<td>
						<input type="radio" name="combination" value="',$row->Id,'">
						<input type="text" hidden name="reasonId" value="1">
						<img src="img/logos/',$row->tId,'.png" width="35" height="35" alt="">
						',$row->name,'
					</td>
				</tr>
			';
		

	}

	echo '	<tr><th></th></tr>
			</table>
			<br>
			<input type="submit" class="button kuendigen" value="Kündigen">
			</form>';
			
	echo '<center><br><br><a href="lima.php" class="button zurueck">Zurück</a></center>';

}
?>

</body>
</html>